<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@  taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="left-sidebar">
	<!-- Sidebar scroll-->
	<div class="scroll-sidebar">
		<!-- Sidebar navigation-->
		<nav class="sidebar-nav">
			<ul id="sidebarnav">
				<li class="nav-devider"></li>
				<c:forEach var="press" items="${pressList }">

					<c:if test="${press.pressPid eq 0 }">
						<li><a class="has-arrow  " href="#" aria-expanded="false"><i
								class='fa <c:choose>
					<c:when test="${press.pressName eq '申请管理' }">fa-pencil-square-o</c:when>
					<c:when test="${press.pressName eq '通知管理' }">fa-envelope</c:when>
					<c:when test="${press.pressName eq '考勤管理' }">fa-calendar</c:when>
					<c:when test="${press.pressName eq '部门管理' }">fa-users</c:when>
					<c:when test="${press.pressName eq '员工管理' }">fa-user</c:when>
					<c:when test="${press.pressName eq '企业管理' }">fa-building-o</c:when>
					<c:otherwise></c:otherwise>
										</c:choose>'></i>
								<span class="hide-menu">${press.pressName }</span> </a> <c:forEach
								var="pressZ" items="${pressList }">

								<c:if test="${press.pressId eq pressZ.pressPid }">

									<ul aria-expanded="false" class="collapse">
										<li><a
											href="<c:choose><c:when test="${!empty pressZ.pressUrl }">${pageContext.request.contextPath}/${pressZ.pressUrl }</c:when><c:otherwise>#</c:otherwise></c:choose>"
											<c:forEach var="pressZZ" items="${pressList }">
													<c:if test="${pressZ.pressId eq pressZZ.pressPid }">class="has-arrow"</c:if>
												</c:forEach>>${pressZ.pressName }</a>
											<c:forEach var="pressZZ" items="${pressList }">
												<c:if test="${pressZ.pressId eq pressZZ.pressPid }">
													<ul aria-expanded="false">
														
															<c:if test="${pressZ.pressId eq pressZZ.pressPid }">
																<li><a
																	href="${pageContext.request.contextPath}/${pressZZ.pressUrl}">${pressZZ.pressName }</a></li>
															</c:if>
														
													</ul>
												</c:if>
											</c:forEach></li>
									</ul>
								</c:if>
							</c:forEach>
					</c:if>

				</c:forEach>

			</ul>
		</nav>
		<!-- End Sidebar navigation -->
	</div>
	<!-- End Sidebar scroll-->
</div>